<?php
/**
 * 项目内部配置
 * 添加必要的配置项
 */
return [
    "COMMON"=> [
        'TickTime' => 180000,                       // 3分钟清理一次，定时清理时间间隔
        'SiteID' => 100,                            // 当前服务器的关键KEY
        //'WebApiURL' => 'http://192.168.0.100:9501', // WEB登录入口首页调用的API地址
        //'ServerIP' => '192.168.0.147',              // 当前负载服务器当前IP地址
        'wsControllerPath' => '\\App\\WebSocket\\Controller\\',
        'heartbeat_check_interval' => 40,           //上面的设置就是每5秒侦测一次心跳,测试一下
        'player_wait_interval' =>  30,              //玩家匹配游戏等待时长
        'BR_ROOM_PEOPNUMBER' =>  10,                //百人游戏房间机器人个数据；默认配置为10个
        /*
         * //userId与fd的映射
         * 'UserIdFdMaps' => 'UserIdFdMaps', //Key = UserIdFdMaps{$fd,$userId}
         * //userToken与fd的映射
         * 'UserTokenFdMaps' => 'UserIdTokenMaps', //Key = UserIdTokenMaps{$fd,$userToken}
         * //存储的用户信息
         * 'UserInfoFd'=>'UserInfoFd', //key={UserInfo} {$fd,$userInfo}
         * //存储系统用户Token信息
         * 'SystemUserTokenFdMaps' => 'SystemUserTokenFd', //Key = SystemUserTokenFd{$fd,$userToken}
         * //存储的系统用户信息
         * 'SystemUserInfoFd'=>'SystemUserInfoFd', //key={UserInfo} {$fd,$userInfo}
         * 'SystemUserInfoToken'=>'SystemUserInfoToken', //key={UserInfo} {$fd,$userInfo}
         * //platCode与fd的映射
         * 'PlatCodeFdMaps' => 'PlatCodeFd', //key = FdPlatCode {$fd,$platCode}
         * //pushType与fd的映射
         * 'PushTypeFd' => 'PushTypeFd', //Key = PushTypeFd {$fd,$pushType}
         * //推送的数据
         * 'PushData' => 'PushData', //key={PushData} {$fd,data}
         *
         * //聊天历史记录(List)
         * 'ChatHistory' => 'Chat:%s:%s:History', //$key=Chat:$platCode:$pushType:History {$platCode,$data}
         * 'ChatUserInfo'=>'Chat:%s:%s:UserInfo', //key = ChatUserInfo:$platCode:$pushType:UserInfo {$platCode,$pushType,$fd}\
         *
         * //后台统计信息的key
         * 'UserStatisticalToken' => 'UserStatisticalToken:%s:%s',//key=UserStatisticalToken:$platCode:$pushType:List {$userToken,$data}
         * //后台统计的Key存储到队列里面
         * 'UserStatisticalTokenQueue' => 'UserStatisticalTokenQueue',//key=UserStatisticalToken:$platCode:$pushType:List {$userToken}
         *
         * //UserToken和Fd的映射
         * 'UserTokenToFds' => 'UserTokenToFds:%s:%s',//key =UserTokenToFds:PlatCode:PushType {$userToken,$fd}
         */
    ]
];

